//
//  BCSavePhotoManager.h
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/11/28.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SavePhotoManagerError : NSError

/**
 *是否是权限引起的错误 authorizationStatus
 */
@property (nonatomic, assign) BOOL isAuthorization;

/**
 *error
 */
@property (nonatomic, copy) NSError *error;

@end

typedef void(^SavePhotoManagerCompleted)(BOOL success,SavePhotoManagerError *error);

@interface BCSavePhotoManager : NSObject

+ (instancetype)sharedSave;
/**
 保存图片到相册
 */
- (void)savePhotoToAlbum:(UIImage *)image complete:(SavePhotoManagerCompleted)complete;



@end

